package com.kch.system.mapper;

import com.kch.system.domain.TrainApplicants;
import com.kch.system.vo.TrainMemberVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TrainApplicantsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TrainApplicants record);

    int insertSelective(TrainApplicants record);

    TrainApplicants selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TrainApplicants record);

    int updateByPrimaryKey(TrainApplicants record);

    List<TrainMemberVO> selectByTrainId(TrainApplicants applicants);

    List<TrainApplicants> selectByTrainIds(@Param("trainIds") List<Integer> trainIds, @Param("userId") Integer userId);
}